package cn.zucc.edu.handyzucc.service;

import cn.zucc.edu.handyzucc.entity.User;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public interface UserService {
    boolean signup(User user);
    User login(String user_username, String user_password);
    User getAuthorById(Integer user_id);
    User getUserById(Integer user_id);
    List<User> getFollow(Integer follow_follower);
    List<User> getFans(Integer follow_leader);
    List<User> getUsersByKeyword(String keyword);
    boolean updateAvator(Integer user_id, Integer user_avator);

    List<User> getAllStudent();
    boolean deleteStudent(String user_username);
    boolean updateStudent(User user);
    boolean updateInfo(String type, String newValue, int user_id);
    List<User> batchSignup(MultipartFile file) throws Exception;
    boolean updatePassword(String user_username, String user_password);
    boolean resetPassword(String user_username);
    boolean resetPasswordUser(String user_username, String user_truename, String user_phone);
}
